﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Collections;
using Syncfusion.Mvc.Grid;
using Syncfusion.DocIO.DLS;
using Syncfusion.Pdf;
using Syncfusion.XlsIO;

namespace MvcApplication4.Controllers
{
    public partial class GridController : Controller
    {
        //
        // GET: /JSONMode/

        public ActionResult JSONMode()
        {
            ViewData["ProductName"] = "Grid";
            return View();
        }

        [AcceptVerbs(HttpVerbs.Post)]
        public ActionResult JSONMode(PagingParams args)
        {
            IEnumerable data = new MvcApplication4.Models.StudentDataContext().Student.Take(100).ToList();
            return data.GridJSONActions<MvcApplication4.Models.Student>();
        }

    }
}
